// 单独配置url地址，便于以后维护
const BASE_URL = 'https://beta.api.rolmax.cn/api/comm/oss/url/img'
// const BASE_URL = 'http://hql.nat300.top/api'


//如果设置高度传 height
//文档 https://help.aliyun.com/document_detail/44688.html
export const imageUrls = (options) => {
	//图片 默认是100  图片缩放为高100 px： 缩放模式为lfit：m_lfit
	let height = options.height? options.height :'100' ;
	 console.log('高度',options.height)
	// 
	return  BASE_URL+'?ossPath='+ options.picUrls + '&token=' + uni.getStorageSync(
  "accessToken") + "&process=image/resize,h_" + height+",m_lfit"
}
